package com.senyin.entity;

import java.util.Objects;

public class Position {
    /**
     * 序号uuid
     */
    private String psId;

    /**
     * 岗位名称
     */
    private String psName;

    /**
     * 岗位描述
     */
    private String psDes;

    public Position() {
    }

    public Position(String psName, String psDes) {
        this.psName = psName;
        this.psDes = psDes;
    }

    public Position(String psId, String psName, String psDes) {
        this.psId = psId;
        this.psName = psName;
        this.psDes = psDes;
    }

    @Override
    public String toString() {
        return "Position{" +
                "psId='" + psId + '\'' +
                ", psName='" + psName + '\'' +
                ", psDes='" + psDes + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Position position = (Position) o;
        return Objects.equals(psId, position.psId) && Objects.equals(psName, position.psName) && Objects.equals(psDes, position.psDes);
    }

    @Override
    public int hashCode() {
        return Objects.hash(psId, psName, psDes);
    }

    public String getPsId() {
        return psId;
    }

    public void setPsId(String psId) {
        this.psId = psId;
    }

    public String getPsName() {
        return psName;
    }

    public void setPsName(String psName) {
        this.psName = psName;
    }

    public String getPsDes() {
        return psDes;
    }

    public void setPsDes(String psDes) {
        this.psDes = psDes;
    }
}
